export default function reducer(
  state = { token: '', refresh_token: '' },
  action
) {
  const { type, payload } = action
  if (type === 'login/token') {
    return {...payload}
  }

  return state
}
